import request from "../utils/request"

//根据用户id查找用户
export function getUserInfo(id){
    return request({
        method: "get",
        url: `/api/v1/user/userInfoById/${id}`
    })
}

//修改用户信息
export function updateUser(user){
    return request({
        method: "put",
        url: "/api/v1/user/updateUser",
        data:{
            id: user.id,
            username: user.username,
            bio: user.bio,
            email: user.email,
            sign: user.sign,
        }
    })
}